import ShowRoute from '@/components/common/routes'
//路由查看页
const views = [
    {
        path: '/routes',
        name: 'routes',
        component: ShowRoute,
        meta: {
            name: '路由查看页',
        }
    }
]

//错误信息
const error = [
    {
        path: '*',
        name: '404',
        component: () => import('@/components/error/404'),
        meta: {
            name: '404',
        }
    }, 
    {
        path: '/',
        name: '重定向',
        redirect: '/home',
        // component: error404,
        meta: {
            name: '登录',
        }
    }
]

//首页
const homes = [
    {
        path: '/home',
        name: 'home',
        component: () => import('@/components/home/home'),
        meta: {
            name: '首页',
        }
    }
]

//金融
const finance = [
    {
        path: '/finance',
        name: 'finance',
        component: () => import('@/components/finance/finance'),
        meta: {
            name: '金融',
        }
    }
]

//产品
const product = [
    {
        path: '/product',
        name: 'product',
        component: () => import('@/components/product/product'),
        meta: {
            name: '产品',
        }
    }
]

//我的
const mine = [
    {
        path: '/mine',
        name: 'mine',
        component: () => import('@/components/mine/mine'),
        meta: {
            name: '我的',
        }
    }
]



export const routes = [...error, ...views, ...homes, ...finance, ...product, ...mine]